package com.hnevc.androiduiclassone8;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileSaveQQ extends AppCompatActivity {

    public static boolean saveUserInfo(Context context, String number,String password){
        try {
            FileOutputStream fos = context.openFileOutput("dataQQ.txt",Context.MODE_PRIVATE);
            fos.close();
            return true;
        } catch (IOException e) {
            e.printStackTrace();
            return false;
        }


    }

}
